CustomMargins

public interface CustomMargins implements PageMargins

Page margins in points. One point equals 1/72 of an inch.

Since

7.13

Functions

Link copied to clipboard
public int bottom()
Returns the margin on the bottom side of the sheet.
Link copied to clipboard
public static PageMargins defaultMargins()
Creates default margins for the web page.
Link copied to clipboard
public int left()
Returns the margin on the left side of the sheet.
Link copied to clipboard
public static PageMargins none()
Creates empty margins for the web page.
Link copied to clipboard
public static PageMargins.CustomMargins of(int left, int right, int top, int bottom)
Creates custom margins for the web page in points.
Link copied to clipboard
public int right()
Returns the margin on the right side of the sheet.
Link copied to clipboard
public int top()
Returns the margin on the top side of the sheet.